package cn.itcast.repository;

import cn.itcast.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ItemRepository extends ElasticsearchRepository<Item,Long> {

    /**
     * 自定义查询方法
     * 根据价格区间查询
     */
    List<Item> findByPriceBetween(double price1,double price2);
}
